#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
     // <summary> 
	// ! Implements a cost function using the interface provided by the LeastSquareProblem class.
	// </summary>
    [Guid ("32F6D8BB-05AE-44c8-8546-F8BE872660C7"),ComVisible(true)]
	public interface ILeastSquareFunction : Cephei.QL.Math.Optimization.ICostFunction
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 ILeastSquareFunction Gradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
        
		 Double Value(Cephei.QL.Math.IArray x);
        
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
    }

    // <summary> 
	// ! Implements a cost function using the interface provided by the LeastSquareProblem class. Factory
	// </summary>
   	[ComVisible(true)]
    public interface ILeastSquareFunction_Factory // : Collection_Factory<ILeastSquareFunction, ICell<ILeastSquareFunction>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    ILeastSquareFunction Create (Cephei.QL.Math.Optimization.ILeastSquareProblem lsp);
    }
}

